package br.com.guinchomarinho.beans;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the servicosadicionais database table.
 * 
 */
@Entity
@Table(name="servicosadicionais")
public class Servicosadicionai implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="SERVICOSADICIONAIS_IDSERVICOSADICIONAIS_GENERATOR" )
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SERVICOSADICIONAIS_IDSERVICOSADICIONAIS_GENERATOR")
	@Column(unique=true, nullable=false)
	private Integer idservicosadicionais;

	@Column(nullable=false, length=2147483647)
	private String descricaoservicosadicionais;

	@Temporal(TemporalType.DATE)
	@Column(nullable=false)
	private Date dtservicosadicionais;

	@Column(nullable=false)
	private Timestamp horaservicosadicionais;

	@Column(nullable=false, precision=10, scale=2)
	private BigDecimal vlservicosadicionais;

	//bi-directional many-to-one association to Servico
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="servicos_idservicos", nullable=false)
	private Servico servico;

	public Servicosadicionai() {
	}

	public Integer getIdservicosadicionais() {
		return this.idservicosadicionais;
	}

	public void setIdservicosadicionais(Integer idservicosadicionais) {
		this.idservicosadicionais = idservicosadicionais;
	}

	public String getDescricaoservicosadicionais() {
		return this.descricaoservicosadicionais;
	}

	public void setDescricaoservicosadicionais(String descricaoservicosadicionais) {
		this.descricaoservicosadicionais = descricaoservicosadicionais;
	}

	public Date getDtservicosadicionais() {
		return this.dtservicosadicionais;
	}

	public void setDtservicosadicionais(Date dtservicosadicionais) {
		this.dtservicosadicionais = dtservicosadicionais;
	}

	public Timestamp getHoraservicosadicionais() {
		return this.horaservicosadicionais;
	}

	public void setHoraservicosadicionais(Timestamp horaservicosadicionais) {
		this.horaservicosadicionais = horaservicosadicionais;
	}

	public BigDecimal getVlservicosadicionais() {
		return this.vlservicosadicionais;
	}

	public void setVlservicosadicionais(BigDecimal vlservicosadicionais) {
		this.vlservicosadicionais = vlservicosadicionais;
	}

	public Servico getServico() {
		return this.servico;
	}

	public void setServico(Servico servico) {
		this.servico = servico;
	}

}